<?php
 ini_set('date.timezone', 'Europe/Berlin');
 
 ini_set('display_errors', 'On');
 error_reporting(E_ALL & ~E_NOTICE);


require './libs/Smarty.class.php';
require "./configs/settings.php";
require PATH_FRAMEWORK.PATH_MODULES."base.inc.php";

session_start();

$lsModule = getGet('module');

if(empty($lsModule)) {
	$lsModuleName = "HomePage";
	$lsClassName  = "C".$lsModuleName."Class";
} else {
	$lsModuleName = $lsModule;
	$lsClassName  = "C".$lsModuleName."Class";
}

require "./app/controller/C".$lsModuleName.".php";

$lmModule = new $lsClassName($lsModuleName);

?>
